.class Lcom/nemustech/regina/ElementWorkspaceSwitcher$1;
.super Ljava/lang/Object;
.source "ElementWorkspaceSwitcher.java"

# interfaces
.implements Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/nemustech/regina/ElementWorkspaceSwitcher;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/nemustech/regina/ElementWorkspaceSwitcher;


# direct methods
.method constructor <init>(Lcom/nemustech/regina/ElementWorkspaceSwitcher;)V
    .locals 0
    .parameter

    .prologue
    .line 127
    iput-object p1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher$1;->this$0:Lcom/nemustech/regina/ElementWorkspaceSwitcher;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onEffectFinish(Lcom/nemustech/tiffany/world/TFObject;)V
    .locals 4
    .parameter "object"

    .prologue
    const/4 v3, 0x0

    .line 131
    iget-object v1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher$1;->this$0:Lcom/nemustech/regina/ElementWorkspaceSwitcher;

    invoke-static {v1}, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->access$100(Lcom/nemustech/regina/ElementWorkspaceSwitcher;)Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;

    move-result-object v1

    invoke-virtual {v1, p1}, Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;->getSlotIndex(Lcom/nemustech/tiffany/world/TFObject;)I

    move-result v0

    .line 132
    .local v0, workspaceIdxToDelete:I
    invoke-virtual {p1}, Lcom/nemustech/tiffany/world/TFObject;->getWorld()Lcom/nemustech/tiffany/world/TFWorld;

    move-result-object v1

    invoke-virtual {v1}, Lcom/nemustech/tiffany/world/TFWorld;->unlock()V

    .line 133
    invoke-virtual {p1, v3}, Lcom/nemustech/tiffany/world/TFObject;->setEffectFinishListener(Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;)V

    .line 134
    iget-object v1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher$1;->this$0:Lcom/nemustech/regina/ElementWorkspaceSwitcher;

    invoke-static {v1}, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->access$300(Lcom/nemustech/regina/ElementWorkspaceSwitcher;)Lcom/nemustech/regina/ElementLocator;

    move-result-object v1

    iget-object v2, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher$1;->this$0:Lcom/nemustech/regina/ElementWorkspaceSwitcher;

    invoke-static {v2}, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->access$200(Lcom/nemustech/regina/ElementWorkspaceSwitcher;)Lcom/nemustech/regina/ReginaLauncher;

    move-result-object v2

    invoke-virtual {v2}, Lcom/nemustech/regina/ReginaLauncher;->getWorkspaceMode()I

    move-result v2

    invoke-virtual {v1, v2, v0}, Lcom/nemustech/regina/ElementLocator;->removeWorkspace(II)V

    .line 135
    iget-object v1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher$1;->this$0:Lcom/nemustech/regina/ElementWorkspaceSwitcher;

    invoke-virtual {v1, v3}, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->rearrangeWorkspaceThumbs(Lcom/nemustech/tiffany/world/TFHolder;)V

    .line 137
    return-void
.end method
